package com.zzh.takeoutapp.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Administrator on 2018/8/14.
 */

public class MoreEntity implements Parcelable {


    /**
     * cate_id : 12
     * parent_id : 0
     * title : 生鲜冻品
     * icon : http://wm.hn796.net/attachs/photo/201805/20180526_999A8770D60A3C1126409015EFDC8999.png
     * photo : http://wm.hn796.net/attachs/photo/201805/20180526_61C2DE9730316BB607DA762BCFAC2900.png
     * orderby : 50
     * dateline : 1524912450
     * show_time :
     * yy_weeks : 0,1,2,3,4,5,6
     * childrens : [{"cate_id":"12","title":"全部","childrens":[]},{"cate_id":"29","parent_id":"12","title":"冻品","icon":"http://wm.hn796.net/attachs/photo/201808/20180814_9EB0D26D185A533A621DA5231CC322A5.jpg","photo":"http://wm.hn796.net/attachs/photo/201808/20180814_D2FE3EE93AC4AC7E39491118CDC7403B.jpg","orderby":"50","dateline":"1534234535","show_time":"","yy_weeks":"0,1,2,3,4,5,6","childrens":[]},{"cate_id":"30","parent_id":"12","title":"冻品2","icon":"http://wm.hn796.net/attachs/photo/201808/20180814_DE7C959783FEEA1972A032C5E10C1644.jpg","photo":"http://wm.hn796.net/attachs/photo/201808/20180814_A4B7D85DAEDFF1FDF16B94B7EC599AC3.jpg","orderby":"50","dateline":"1534234617","show_time":"","yy_weeks":"0,1,2,3,4,5,6","childrens":[]}]
     */

    private String cate_id;
    private String parent_id;
    private String title;
    private String icon;
    private String photo;
    private String orderby;
    private String dateline;
    private String show_time;
    private String yy_weeks;
    private List<ChildrensBean> childrens;

    protected MoreEntity(Parcel in) {
        cate_id = in.readString();
        parent_id = in.readString();
        title = in.readString();
        icon = in.readString();
        photo = in.readString();
        orderby = in.readString();
        dateline = in.readString();
        show_time = in.readString();
        yy_weeks = in.readString();
    }

    public static final Creator<MoreEntity> CREATOR = new Creator<MoreEntity>() {
        @Override
        public MoreEntity createFromParcel(Parcel in) {
            return new MoreEntity(in);
        }

        @Override
        public MoreEntity[] newArray(int size) {
            return new MoreEntity[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(cate_id);
        dest.writeString(title);
    }

    public String getCate_id() {
        return cate_id;
    }

    public void setCate_id(String cate_id) {
        this.cate_id = cate_id;
    }

    public String getParent_id() {
        return parent_id;
    }

    public void setParent_id(String parent_id) {
        this.parent_id = parent_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getOrderby() {
        return orderby;
    }

    public void setOrderby(String orderby) {
        this.orderby = orderby;
    }

    public String getDateline() {
        return dateline;
    }

    public void setDateline(String dateline) {
        this.dateline = dateline;
    }

    public String getShow_time() {
        return show_time;
    }

    public void setShow_time(String show_time) {
        this.show_time = show_time;
    }

    public String getYy_weeks() {
        return yy_weeks;
    }

    public void setYy_weeks(String yy_weeks) {
        this.yy_weeks = yy_weeks;
    }

    public List<ChildrensBean> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<ChildrensBean> childrens) {
        this.childrens = childrens;
    }

    public static class ChildrensBean {
        /**
         * cate_id : 12
         * title : 全部
         * childrens : []
         * parent_id : 12
         * icon : http://wm.hn796.net/attachs/photo/201808/20180814_9EB0D26D185A533A621DA5231CC322A5.jpg
         * photo : http://wm.hn796.net/attachs/photo/201808/20180814_D2FE3EE93AC4AC7E39491118CDC7403B.jpg
         * orderby : 50
         * dateline : 1534234535
         * show_time :
         * yy_weeks : 0,1,2,3,4,5,6
         */

        private String cate_id;
        private String title;
        private String parent_id;
        private String icon;
        private String photo;
        private String orderby;
        private String dateline;
        private String show_time;
        private String yy_weeks;
        private List<?> childrens;

        public String getCate_id() {
            return cate_id;
        }

        public void setCate_id(String cate_id) {
            this.cate_id = cate_id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getParent_id() {
            return parent_id;
        }

        public void setParent_id(String parent_id) {
            this.parent_id = parent_id;
        }

        public String getIcon() {
            return icon;
        }

        public void setIcon(String icon) {
            this.icon = icon;
        }

        public String getPhoto() {
            return photo;
        }

        public void setPhoto(String photo) {
            this.photo = photo;
        }

        public String getOrderby() {
            return orderby;
        }

        public void setOrderby(String orderby) {
            this.orderby = orderby;
        }

        public String getDateline() {
            return dateline;
        }

        public void setDateline(String dateline) {
            this.dateline = dateline;
        }

        public String getShow_time() {
            return show_time;
        }

        public void setShow_time(String show_time) {
            this.show_time = show_time;
        }

        public String getYy_weeks() {
            return yy_weeks;
        }

        public void setYy_weeks(String yy_weeks) {
            this.yy_weeks = yy_weeks;
        }

        public List<?> getChildrens() {
            return childrens;
        }

        public void setChildrens(List<?> childrens) {
            this.childrens = childrens;
        }
    }
}
